package modele;

import java.util.List;
import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Column;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Transient;
import javax.persistence.Embeddable;

/**
 * <p>Pojo mapping TABLE famille</p>
 * <p></p>
 *
 * <p>Generated at Sat Feb 26 23:34:05 CET 2011</p>
 * @author Salto-db Generator v1.0.16 / EJB3
 * 
 */
@Entity
@Table(name = "famille")
@SuppressWarnings("serial")
public class Famille implements Serializable {

	/**
	 * Attribute idFamille.
	 */
	private Integer idFamille;
	
	/**
	 * Attribute faCodefamille.
	 */
	private String faCodefamille;
	
	/**
	 * Attribute faIntitule.
	 */
	private String faIntitule;
	
	/**
	 * Attribute catcompta
	 */
	 private Catcompta catcompta;	

	
	/**
	 * <p> 
	 * </p>
	 * @return idFamille
	 */
	@Basic
	@Id
	@GeneratedValue
	@Column(name = "id_famille")
		public Integer getIdFamille() {
		return idFamille;
	}

	/**
	 * @param idFamille new value for idFamille 
	 */
	public void setIdFamille(Integer idFamille) {
		this.idFamille = idFamille;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return faCodefamille
	 */
	@Basic
	@Column(name = "FA_CodeFamille", length = 100)
		public String getFaCodefamille() {
		return faCodefamille;
	}

	/**
	 * @param faCodefamille new value for faCodefamille 
	 */
	public void setFaCodefamille(String faCodefamille) {
		this.faCodefamille = faCodefamille;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return faIntitule
	 */
	@Basic
	@Column(name = "FA_Intitule", length = 45)
		public String getFaIntitule() {
		return faIntitule;
	}

	/**
	 * @param faIntitule new value for faIntitule 
	 */
	public void setFaIntitule(String faIntitule) {
		this.faIntitule = faIntitule;
	}
	
	/**
	 * get catcompta
	 */
	@ManyToOne
	@JoinColumn(name = "id_catcompta")
	public Catcompta getCatcompta() {
		return this.catcompta;
	}
	
	/**
	 * set catcompta
	 */
	public void setCatcompta(Catcompta catcompta) {
		this.catcompta = catcompta;
	}



}